<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="<?php bloginfo('description'); ?>" />
<meta name="keywords" content="<?php bloginfo('keywords'); ?>" />
<title>
<?php if ( is_home() ) {
		bloginfo('name'); echo " - "; bloginfo('description');
	} elseif ( is_category() ) {
		single_cat_title(); echo " - "; bloginfo('name');
	} elseif (is_single() || is_page() ) {
		single_post_title();
	} elseif (is_search() ) {
		echo "搜索结果"; echo " - "; bloginfo('name');
	} elseif (is_404() ) {
		echo '页面未找到!';
	} else {
		wp_title('',true);
	} ?>

</title>
<!-- Stylesheets -->
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/images/favicon.ico"/>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/function.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/SuperSlide.js"></script>
</head>
<?php wp_head(); ?>
<body>
<!-- Header -->
<div id="header">
  <div class="wrap">
    <!-- logo-left -->
    <div class="logo left">
      <a title="<?php bloginfo('description'); ?>" href="<?php echo get_option('home'); ?>"><h1><?php bloginfo('name'); ?></h1></a>
      <h2><?php bloginfo('description'); ?></h2>
    </div>
    <!-- nav-mid -->
    <div class="nav left">
      <ul>
        <li <?php if (is_home()) { echo 'class="cur"';} ?>>
        <a title="<?php bloginfo('name'); ?>"  href="<?php echo get_option('home'); ?>/">首页</a>
        </li>
	  <?php wp_list_pages('depth=1&title_li=0&sort_column=menu_order'); ?>      
      </ul>
    </div>
    <!-- search-right -->
    <div class="search right">
      <form id="searchForm" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
      <fieldset>
      <input name="s" id="s" type="text" class="text" placeholder="请输入关键字" />
      <input type="submit" value="Submit" id="searchsubmit" />
      </fieldset>
      </form>
    </div>
  </div>
</div>